#define  _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include <string.h>

int main()
{
	char s[] = "\\123456\123456\t";
	printf("%d\n", strlen(s));
	return 0;
}

void rotate(int* nums, int numsSize, int k) {

    while (k--)
    {
        int tmp = nums[numsSize - 1];
        for (int i = numsSize; i > 1; i--)
        {
            nums[i - 1] = nums[i - 2];
        }
        nums[0] = tmp;
    }
}

void reversal(int* nums, size_t n, size_t m)
{
    while (n < m)
    {
        int tmp = nums[m];
        nums[m] = nums[n];
        nums[n] = tmp;
        n++;
        m--;
    }
}
void rotate(int* nums, int numsSize, int k) {
    reversal(nums, 0, numsSize - k - 1);
    reversal(nums, numsSize - k, numsSize - 1);
    reversal(nums, 0, numsSize - 1);
}